package com.cwj.singleton;

/**
 * @author: Chenwujie
 * @date: 2021-06-25 11:30
 */
public class Singleton {
    private static class SingletonHolder {
        private static final Singleton INSTANCE = new Singleton();
    }

    private Singleton() {
        // Instantiation of utility class 'Singleton'
    }

    public static Singleton getInstance(){
        return SingletonHolder.INSTANCE;
    }


}
